<script setup lang="ts">
import { reactive, ref } from 'vue';

let searchResult = ref('')
	let plantList = reactive([
		{}
	])
	const searchPlant = (query) => {
		console.log('searchPlant', query)
		searchResult.value = 'getSuccess'
	}
	const onClickIcon = () => {
		console.log('onClickIcon');
	}
</script>

<template>
	<view>
		<up-search style="margin: 10rpx;" placeholder="请输入绿植名称" :showAction="true" :animation="true" @search="searchPlant" @clickIcon="onClickIcon"></up-search>
	</view>
	<view class="">
		{{searchResult}}
	</view>
</template>

<style>

</style>
